{% extends 'easydisAPSBundle::base_template.html.twig' %}

{% block stylesheets %}
    <link rel="stylesheet" href="{{ asset('bundles/easydisAPS/css/css-template/colorpicker.css') }}" />
    <link rel="stylesheet" href="{{ asset('bundles/easydisAPS/css/css-template/uniform.css') }}" />
    <link rel="stylesheet" href="{{ asset('bundles/easydisAPS/css/css-template/select2.css') }}" />
    <link rel="stylesheet" href="{{ asset('bundles/easydisAPS/smoothness/jquery-ui-1.10.3.custom.css') }}" />
{% endblock %}

{% block scripts %}
    <script src="{{ asset('bundles/easydisAPS/js-template/jquery.uniform.js') }}"></script>
    <script src="{{ asset('bundles/easydisAPS/js-template/select2.min.js') }}"></script>
    <script src="{{ asset('bundles/easydisAPS/js-template/jquery.dataTables.min.js') }}"></script>
    <script src="{{ asset('bundles/easydisAPS/js-template/maruti.js') }}"></script>
    <script src="{{ asset('bundles/easydisAPS/js-template/maruti.tables.js') }}"></script>
    
{% endblock %}
    
{% block contenu %}
    
{% for flashMessage in app.session.flashbag.get('notice') %}
    {% if flashMessage %}
        <div class="notice">
                {{ flashMessage }}
                <br/><br/>
        </div>
    {% endif %}
{% endfor %}

<div class="row-fluid">
    <div class="span7">
        <div class="widget-box">
            <div class="widget-title"> <span class="icon">
              <input type="checkbox" id="title-checkbox" name="title-checkbox" />
              </span>
              <h5>Static table with checkboxes</h5>
            </div>
            <div class="widget-content nopadding">
              <form action="{{ path('easydisAPSBundle_planning_lister_effectif', { 'gs':gs }) }}" method="post">
              <table class="table table-bordered table-striped with-check">
                <thead>
                    <tr>
                      <th><i class="icon-resize-vertical"></i></th>
                      <th>Matricule</th>
                      <th>NOM</th>
                      <th>Prenoms</th>
                      <th>Section</th>
                      <th>Status</th>
                      <th>Visible</th>
                    </tr>
                </thead>
                <tbody>
                  {% for tab in tabResult %}
                        <tr>
                          <td><input type="checkbox" name="select[]" value="{{ tab[0] }}"/></td>
                          <td>{{ tab[0] }}</td>
                          <td>{{ tab[1] }}</td>
                          <td>{{ tab[2] }}</td>
                          <td class="center">{{ tab[3] }}</td>
                          <td>{{ tab[4] }}</td>
                          <td>{{ tab[5] }}</td>
                        </tr>
                  {% endfor %}
               </tbody>
               </table>
                <div class="form-actions">
                    <input type="submit" name="masquer" class="btn btn-info" value="Masquer" />
                    <input type="submit" name="demasquer" class="btn btn-info" value="Demasquer" />
                </div>
              </form>
            </div>
        </div>
    </div>
</div>
</div>
{% endblock %}